package com.quarters.mapper;

import com.quarters.bean.Quarters;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.quarters.bean.UserInfo;
import com.quarters.bean.ztree.ZtreeBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 小区表 Mapper 接口
 * </p>
 *
 * @author 冯政尚
 * @since 2019-09-02
 */
public interface QuartersMapper extends BaseMapper<Quarters> {

    /**
     * @param map
     * @return 后台查询
     */
    List<Quarters> selectMyPage(@Param("param") Map map);
    Integer  countMyPage (@Param("param")Map map);


    /**
     * @param userId
     * @return 根据对应的角色查询对应的小区
     */
    List<ZtreeBean> llist(@Param("userId")Long userId);
    List<ZtreeBean> allQuarters();


}
